package com.nmf.pc.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.nmf.pc.vo.ReturnResult;
import com.nmf.site.biz.paygoods.genx.dao.GxPayGoodsDao;

@Controller
@RequestMapping(value = "/pc")
public class PcPayGoodsController {
	@Autowired
	GxPayGoodsDao gxPayGoodsDao;
	@RequestMapping(value = { "p/pay/query" }, method = { RequestMethod.POST, RequestMethod.GET })
	@ResponseBody
	public ReturnResult query(HttpServletRequest request, HttpServletResponse response) {
		ReturnResult returnResult = new ReturnResult();
		returnResult.setData("payList", gxPayGoodsDao.queryPayGoods());
		return returnResult;
	}
	
}
